package com.example.taobaounion.base

import android.os.Bundle
import android.os.PersistableBundle
import androidx.appcompat.app.AppCompatActivity

/**
 *@author : Administrator
 *@descreption : Activity基类
 */
abstract class BaseActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(setLayoutRsId())
        initView()
        initListener()
        initData()
        initPresenter()
        initEvent()
    }

    abstract fun initPresenter()

    abstract fun initEvent()

    abstract fun initData()

    abstract fun initListener()

    abstract fun initView()

    abstract fun setLayoutRsId(): Int
}